<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <title>10-背景色-前景色-练习</title>
    <style>
        pre {
            background-color: black;
            width: 350px;
            /* 在pre的上下左右都添加20px的内边距 */
            padding: 20px;
            /*height: 400px;*/
        }

        span {
            font-size: 25px;
        }
    </style>
</head>
<body>

<pre>
<code>
<span style="color: green;">/* box style */</span>
<span style="color: deepskyblue;">.box</span> <span style="color: white;">{</span>
    <span style="color: red;">margin</span><span style="color: white;">:</span> <span style="color: purple;">0 0 30</span><span style="color: white;">px</span> <span style="color: purple;">0</span><span style="color: white;">;</span>
    <span style="color: red;">padding</span><span style="color: white;">:</span> <span style="color: purple;">15</span><span style="color: white;">px;</span>
    <span style="color: red;">color</span><span style="color: white;">: red;</span>
    <span style="color: red;">background-color</span><span style="color: white;">: #007799;</span>
    <span style="color: red;">box-shadow</span><span style="color: white;">: none;</span>
<span style="color: white;">}</span>
</code>
</pre>

</body>
</html>